package com.guigu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ReturnShopInfo {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    private String returnNumber;//退货单号

    private Integer odId;//订单详情id

    private Integer uid; //退货人

    private Integer shopState;//货物状态 0未收到货 1已收到货

    private Integer refundCaseid; //退款原因

    private Double money; //退款金额

    private String returnImg1;//退货图片1

    private String returnImg2;//退货图片2

    private String returnImg3;//退货图片3

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date returnTime;//退货时间

    private String remark;//退货备注

    private Integer isAudit;//是否审核 0 待审核 1审核通过【废弃】

    private Integer goodsState;//货物状态
    //1：等待用户将货物送到商户，商户等待确认
    //2：商户确认收货，等待总店取货
    //3：总店成功取货，送到退货仓库
    //4：总店退货到供应商，供应商给钱到总店，总店退钱给用户，退货结束
    //(默认为0，当通过审核就将状态改为1或者5)

    //5:用户拒绝收货，总店已发货，商户等待接收
    //6:商户接收货物，等待总店人员取货，等待总店签收
    //7:总店签收成功，等待总店入库
    //8:退货成功

    private Integer isDelete;//是否删除

    private Integer isDesign; //是否设计入库

    @TableField(exist = false)
    private String[] srcList;//本次退款图片路径集合

    @TableField(exist = false)
    private ReturnCase returnCase;//退款原因对象

    @TableField(exist = false)
    private OrdersParticulars detail;//订单详情对象

    @TableField(exist = false)
    private Users users; //退货人
}